// 管理mock数据，课程管理
export default {
    courseGroupDownload: () => ({ // 模拟返回下载Excel模板数据
        code: 1,
        msg: "下载成功"
    }),
    courseGroupUpload: () => ({ // 模拟上传Excel模板
        code: 1,
        msg: "上传成功",
        data: {
            data: [
                {
                    simpleCourseGroupInfo:{
                        courseGroupId: '1',
                        course: "操作系统1",
                        time: "2018-2019 第一学期",
                        teacher: [{id:1,name:"张三"},{id:2,name:"李四"}],
                        classes: ["18级计科1-6班","18级软件1-3班"],
                    },
                    name: "18级操作系统",
                    leader: {id:1,name:"李四道"}
                },
                {
                    simpleCourseGroupInfo:{
                        courseGroupId: '2',
                        course: "操作系统2",
                        time: "2018-2019 第一学期",
                        teacher: [{id:1,name:"张三"},{id:2,name:"李四"}],
                        classes: ["18级计科1-6班","18级软件1-3班"],
                    },
                    name: "18级操作系统",
                    leader: {id:1,name:"李四道"}
                },
                {
                    simpleCourseGroupInfo:{
                        courseGroupId: '3',
                        course: "操作系统3",
                        time: "2018-2019 第一学期",
                        teacher: [{id:1,name:"张三"},{id:2,name:"李四"}],
                        classes: ["18级计科1-6班","18级软件1-3班"],
                    },
                    name: "18级操作系统",
                    leader: {id:1,name:"李四道"}
                },
                {
                    simpleCourseGroupInfo:{
                        courseGroupId: '4',
                        course: "操作系统4",
                        time: "2018-2019 第一学期",
                        teacher: [{id:1,name:"张三"},{id:2,name:"李四"}],
                        classes: ["18级计科1-6班","18级软件1-3班"],
                    },
                    name: "18级操作系统",
                    leader: {id:1,name:"李四道"}
                },
                {
                    simpleCourseGroupInfo:{
                        courseGroupId: '5',
                        course: "操作系统5",
                        time: "2018-2019 第一学期",
                        teacher: [{id:1,name:"张三"},{id:2,name:"李四"}],
                        classes: ["18级计科1-6班","18级软件1-3班"],
                    },
                    name: "18级操作系统",
                    leader: {id:1,name:"李四道"}
                },
                {
                    simpleCourseGroupInfo:{
                        courseGroupId: '6',
                        course: "操作系统6",
                        time: "2018-2019 第一学期",
                        teacher: [{id:1,name:"张三"},{id:2,name:"李四"}],
                        classes: ["18级计科1-6班","18级软件1-3班"],
                    },
                    name: "18级操作系统",
                    leader: {id:1,name:"李四道"}
                },
                {
                    simpleCourseGroupInfo:{
                        courseGroupId: 7,
                        course: "操作系统7",
                        time: "2018-2019 第一学期",
                        teacher: [{id:1,name:"张三"},{id:2,name:"李四"}],
                        classes: ["18级计科1-6班","18级软件1-3班"],
                    },
                    name: "18级操作系统",
                    leader: {id:1,name:"李四道"}
                },
                {
                    simpleCourseGroupInfo:{
                        courseGroupId: '8',
                        course: "操作系统8",
                        time: "2018-2019 第一学期",
                        teacher: [{id:1,name:"张三"},{id:2,name:"李四"}],
                        classes: ["18级计科1-6班","18级软件1-3班"],
                    },
                    name: "18级操作系统",
                    leader: {id:1,name:"李四道"}
                },
                {
                    simpleCourseGroupInfo:{
                        courseGroupId: '9',
                        course: "操作系统9",
                        time: "2018-2019 第一学期",
                        teacher: [{id:1,name:"张三"},{id:2,name:"李四"}],
                        classes: ["18级计科1-6班","18级软件1-3班"],
                    },
                    name: "18级操作系统",
                    leader: {id:1,name:"李四道"}
                }
            ]
        }
    }),
    courseGroupImport: () => ({ // 课程导入
        code: 1,
        msg: "导入成功"
    }),
    editCourseGroupInfo: () =>  ({ // 批量导入修改课程组
        code: 1,
        msg: '获取数据成功',
        data: {
            courseGroups: [
                '操作系统1',
                '操作系统2',
                '操作系统3',
                '操作系统4',
                '操作系统5',
                '操作系统6',
                '操作系统7',
                '操作系统8',
                '操作系统9',
                '操作系统10',
            ],
            courseGroupTimes: ['2018-2019 第二学期', '2018-2019 第一学期', '2019-2020 第一学期', '2019-2020第二学期'], // 开课时间
            courseGroupTeacher: [{id:1,name:"张三"}, {id:2,name:"李四"},{id:3,name:"王五"},{id:4,name:"赵六"}],
            courseGroupLeader: [{id:1,name:"李四道"}, {id:2,name:"王星"},{id:3,name:"陈汉"}],
            courseGroupClass: ['18级计科1-6班', '18级软件1-3班', '18级物联网1-2班']
        }
    }),
    courseGroupInfo: () => ({ //课程组列表数据
        code: 1,
        msg: '查询成功',
        msg1: '删除成功',
        data: [
            {
                course: '10001',
                courseGrouptime: '2020年9月10号',
                teachers: '吴索',
                classes: '计科一班',
            },
            {
                course: '10002',
                courseGrouptime: '2020年9月10号',
                teachers: '王鑫',
                classes: '计科一班'
            },
            {
                course: '10003',
                courseGrouptime: '2020年9月10号',
                teachers: '王鑫1',
                classes: '计科一班',
            },
            {
                course: '10004',
                courseGrouptime: '2020年9月10号',
                teachers: '王鑫2',
                classes: '计科一班',
            },
            {
                course: '10005',
                courseGrouptime: '2020年9月10号',
                teachers: '王汐',
                classes: '计科一班',
            }, {
                course: '10006',
                courseGrouptime: '2020年9月10号',
                teachers: '叶七',
                classes: '计科一班',
            },
            {
                course: '10007',
                courseGrouptime: '2020年9月10号',
                teachers: '叶与',
                classes: '计科一班',
            },
            {
                course: '10008',
                courseGrouptime: '2020年9月10号',
                teachers: '肖行',
                classes: '计科一班',
            },
            {
                course: '10009',
                courseGrouptime: '2020年9月10号',
                teachers: '肖小',
                classes: '计科一班',
            },
            {
                course: '100010',
                courseGrouptime: '2020年9月10号',
                teachers: '肖肖',
                classes: '计科一班',
            },

        ]
    }),
    courseGroupDelete: () => ({ //
        code: 1,
        msg: "删除成功"
    }),
    courseGroupModify: () =>({//
        code: 1,
        msg: '修改成功!',
    }),
    courseGroupQuery: () => ({ //
        code: 1,
        msg: "搜索成功",
        data:[
            {
                course: '10001',
                courseGrouptime: '2020年9月10号',
                teachers: '仟月',
                classes: '计科一班',
            },
            {
                course: '10002',
                courseGrouptime: '2020年9月10号',
                teachers: '王鑫',
                classes: '计科一班'
            },
        ]
    }),
    courseGroupAdd: () => ({ //
        code: 1,
        msg: "课程组信息添加成功"
    }),
    BatchDelete: () => ({ //
        code: 1,
        msg: "批量删除课程组信息成功"
    }),

}
